import App from './App';

// #ifndef VUE3
import Vue from 'vue';
import './uni.promisify.adaptor';
// 工具方法
import tool from '@/core/libs/tool.js';
Vue.prototype.$tool = tool;
// Vuex
import store from './store/index.js'
Vue.prototype.$store = store;
// 语言bao
import VueI18n from 'vue-i18n';
import jiantizhongwen from '@/static/lang/jiantizhongwen.js';
import fantizhongwen from '@/static/lang/fantizhongwen.js';
import yingwen from '@/static/lang/yingwen.js';
import hanwen from '@/static/lang/hanwen.js';
import riwen from '@/static/lang/riwen.js';
import malaiyu from '@/static/lang/malaiyu.js';
import yinduyu from '@/static/lang/yinduyu.js';
import yuenanyu from '@/static/lang/yuenanyu.js';
Vue.use(VueI18n);
Vue.config.productionTip = false;
const i18n = new VueI18n({
	locale: 'SimplifiedChinese',
	messages: {
		'SimplifiedChinese': jiantizhongwen,
		'TraditionalChinese': fantizhongwen,
		'English': yingwen,
		'Korean': hanwen,
		'Japanese': riwen,
		'Malay': malaiyu,
		'Hindi': yinduyu,
		'Vietnamese': yuenanyu,
	}
})
Vue.prototype._i18n = i18n;
App.mpType = 'app'
const app = new Vue({
	i18n,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif